package j01jinzhi;

public class J1 {
    public static void main(String[] args) {
        //进制
        int a = 11;
        System.out.println(a);//11
        //0  1  10   11
        System.out.println(0b11);//转成10进制 3
        System.out.println(0B100);//转成10进制  4
        System.out.println(010);//0-7  8
        System.out.println(0x10);// 16
        System.out.println(0X11);// 17

        //good morning evenry one!
        //000011111
        //灯泡，
        // a - 0000 0000 0000 0000 00000 0000 0000
        // b - 1
        // x  - 26  0b1110000
        // .?!$&%
        // gbk  2M  12M
     }
}

class CharTest{
    public static void main(String[] args) {
        char c1 = 'a';
        System.out.println(c1);//a
        System.out.println('天');
        System.out.println('\n');
        System.out.println('w');
        System.out.println('\'');
        System.out.println("=====");
        char c97 = 97;
        System.out.println("c97 = " + c97);

        char c6 = 0b1100001;
        System.out.println("c6 = " + c6);
        System.out.println("=====");
        char[] cArr = {'a','k',7,97};
        System.out.println(cArr[0]);
        System.out.println(cArr[2]);
        System.out.println(cArr[3]);

        System.out.println("=====");
        System.out.println('m'>'a');//true
        System.out.println('c'+1);
        char cx = 'c'+2;
        System.out.println("cx = " + cx);
        char cy = 'm';
        cy = (char) (cy + 1);
        System.out.println("cy = " + cy);
    }
}
